package com.rr.mymoney.bo;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.rr.mymoney.model.Account;

@Transactional
public interface AccountBo {
    @Transactional
    public void saveOrUpdate(Account account);

    @Transactional(readOnly = true)
    public Account get(Long id);

    @Transactional
    public void delete(Account account);

    @Transactional(readOnly = true)
    public List<Account> getByUserId(Long userId);
}
